package pack0711;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;

//演示缓冲字符输入流的使用
public class BufferedReaderDemo {

    public static void main(String[] args) throws Exception {
        BufferedReader br=new BufferedReader(new FileReader("a.txt"));

        String s=null;

        while((s= br.readLine())!=null)
            System.out.println(s);

        br.close();
    }
}
